package com.demo.apparel.service.uniapp;

import com.demo.apparel.dto.uniapp.MatchCreateDTO;
import com.demo.apparel.dto.uniapp.MatchPageQueryDTO;
import com.demo.apparel.entity.Match;
import com.demo.apparel.vo.PageVO;
import com.fasterxml.jackson.core.JsonProcessingException;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface MatchService {
    String createMatch(String userId, MatchCreateDTO dto) throws JsonProcessingException;

    Match getMatchById(String id);

    List<String> parseTags(Match match) throws JsonProcessingException;

    List<String> parseImages(Match match) throws JsonProcessingException;

    List<Match> getMatchesByUserId(String userId);

    PageVO<Match> getMatchesPage(String userId, MatchPageQueryDTO query);

    // 分页查询所有用户搭配
    PageVO<Match> getAllMatchesPage(MatchPageQueryDTO query);
}